package cc.orange.entity;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;
/**
 * Created by CM on 2023/1/4.
 */

public class NoteExtrEntity implements Parcelable{

   /*{
  "msg": "抽取成功",
  "code": 0,
  "data": {
    "searchValue": null,
    "createBy": null,
    "createTime": "2022-12-28 17:21:27",
    "updateBy": null,
    "updateTime": "2022-12-28 17:21:27",
    "remark": null,
    "params": {},
    "id": 121,
    "name": "小猫🐱喵喵",
    "remarkName": null,
    "headPhoto": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJrrNOzQ4p4GND5aznmxEVVeoGh8uF69hKibHbhDnKSbJTe3CGt2m5Fwcf6BNPEibymuD9MhpNFSOOQ/132",
    "number": "97209929",
    "sex": 0,
    "sexs": null,
    "gold": 0,
    "openId": "op-qs6dcf7g2e9JaRGrAFE3T-3Ik",
    "level": 1,
    "userNum": 3.5,
    "gzNum": 0,
    "fsNum": 0,
    "dele": null,
    "lfNum": 0,
    "versionCode": 1,
    "versionName": "1.0.1",
    "isDeleted": 0,
    "status": null,
    "userType": null,
    "isVip": "0",
    "vipEndTime": null,
    "address": "青岛",
    "userName": null,
    "passWord": null,
    "age": 22,
    "spareStatus": "0"
  }
}*/

   @SerializedName("msg")
   private String msg;
   @SerializedName("code")
   private int code;
   @SerializedName("data")
   private Data data;

   protected NoteExtrEntity(Parcel in) {
      msg = in.readString();
      code = in.readInt();
      data = in.readParcelable(Data.class.getClassLoader());
   }

   public static final Creator<NoteExtrEntity> CREATOR = new Creator<NoteExtrEntity>() {
      @Override
      public NoteExtrEntity createFromParcel(Parcel in) {
         return new NoteExtrEntity(in);
      }

      @Override
      public NoteExtrEntity[] newArray(int size) {
         return new NoteExtrEntity[size];
      }
   };

   public String getMsg() {
      return msg;
   }

   public void setMsg(String msg) {
      this.msg = msg;
   }

   public int getCode() {
      return code;
   }

   public void setCode(int code) {
      this.code = code;
   }

   public Data getData() {
      return data;
   }

   public void setData(Data data) {
      this.data = data;
   }

   @Override
   public int describeContents() {
      return 0;
   }

   @Override
   public void writeToParcel(Parcel dest, int flags) {
      dest.writeString(msg);
      dest.writeInt(code);
      dest.writeParcelable(data, flags);
   }

   public static class Data implements Parcelable{
      @SerializedName("searchValue")
      private Object searchValue;
      @SerializedName("createBy")
      private Object createBy;
      @SerializedName("createTime")
      private String createTime;
      @SerializedName("updateBy")
      private Object updateBy;
      @SerializedName("updateTime")
      private String updateTime;
      @SerializedName("remark")
      private Object remark;
      @SerializedName("params")
      private Params params;
      @SerializedName("id")
      private int id;
      @SerializedName("name")
      private String name;
      @SerializedName("remarkName")
      private String remarkName;
      @SerializedName("headPhoto")
      private String headPhoto;
      @SerializedName("number")
      private String number;
      @SerializedName("sex")
      private int sex;
      @SerializedName("sexs")
      private Object sexs;
      @SerializedName("gold")
      private int gold;
      @SerializedName("openId")
      private String openId;
      @SerializedName("level")
      private int level;
      @SerializedName("userNum")
      private double userNum;
      @SerializedName("gzNum")
      private int gzNum;
      @SerializedName("fsNum")
      private int fsNum;
      @SerializedName("dele")
      private Object dele;
      @SerializedName("lfNum")
      private int lfNum;
      @SerializedName("versionCode")
      private int versionCode;
      @SerializedName("versionName")
      private String versionName;
      @SerializedName("isDeleted")
      private int isDeleted;
      @SerializedName("status")
      private Object status;
      @SerializedName("userType")
      private Object userType;
      @SerializedName("isVip")
      private String isVip;
      @SerializedName("vipEndTime")
      private Object vipEndTime;
      @SerializedName("address")
      private String address;
      @SerializedName("userName")
      private Object userName;
      @SerializedName("passWord")
      private Object passWord;
      @SerializedName("age")
      private int age;
      @SerializedName("spareStatus")
      private String spareStatus;
      @SerializedName("userId")
      private String userId;
      @SerializedName("noteId")
      private String noteId;
      @SerializedName("noteContent")
      private String noteContent;

      public String getNoteId() {
         return noteId;
      }

      public void setNoteId(String noteId) {
         this.noteId = noteId;
      }

      public String getNoteContent() {
         return noteContent;
      }

      public void setNoteContent(String noteContent) {
         this.noteContent = noteContent;
      }

      protected Data(Parcel in) {
         createTime = in.readString();
         updateTime = in.readString();
         id = in.readInt();
         name = in.readString();
         remarkName = in.readString();
         headPhoto = in.readString();
         number = in.readString();
         sex = in.readInt();
         gold = in.readInt();
         openId = in.readString();
         level = in.readInt();
         userNum = in.readDouble();
         gzNum = in.readInt();
         fsNum = in.readInt();
         lfNum = in.readInt();
         versionCode = in.readInt();
         versionName = in.readString();
         isDeleted = in.readInt();
         isVip = in.readString();
         address = in.readString();
         age = in.readInt();
         spareStatus = in.readString();
         userId = in.readString();
         noteId = in.readString();
         noteContent = in.readString();
      }

      public String getUserId() {
         return userId;
      }

      public void setUserId(String userId) {
         this.userId = userId;
      }

      public static final Creator<Data> CREATOR = new Creator<Data>() {
         @Override
         public Data createFromParcel(Parcel in) {
            return new Data(in);
         }

         @Override
         public Data[] newArray(int size) {
            return new Data[size];
         }
      };

      public Object getSearchValue() {
         return searchValue;
      }

      public void setSearchValue(Object searchValue) {
         this.searchValue = searchValue;
      }

      public Object getCreateBy() {
         return createBy;
      }

      public void setCreateBy(Object createBy) {
         this.createBy = createBy;
      }

      public String getCreateTime() {
         return createTime;
      }

      public void setCreateTime(String createTime) {
         this.createTime = createTime;
      }

      public Object getUpdateBy() {
         return updateBy;
      }

      public void setUpdateBy(Object updateBy) {
         this.updateBy = updateBy;
      }

      public String getUpdateTime() {
         return updateTime;
      }

      public void setUpdateTime(String updateTime) {
         this.updateTime = updateTime;
      }

      public Object getRemark() {
         return remark;
      }

      public void setRemark(Object remark) {
         this.remark = remark;
      }

      public Params getParams() {
         return params;
      }

      public void setParams(Params params) {
         this.params = params;
      }

      public int getId() {
         return id;
      }

      public void setId(int id) {
         this.id = id;
      }

      public String getName() {
         return name;
      }

      public void setName(String name) {
         this.name = name;
      }

      public String getRemarkName() {
         return remarkName;
      }

      public void setRemarkName(String remarkName) {
         this.remarkName = remarkName;
      }

      public String getHeadPhoto() {
         return headPhoto;
      }

      public void setHeadPhoto(String headPhoto) {
         this.headPhoto = headPhoto;
      }

      public String getNumber() {
         return number;
      }

      public void setNumber(String number) {
         this.number = number;
      }

      public int getSex() {
         return sex;
      }

      public void setSex(int sex) {
         this.sex = sex;
      }

      public Object getSexs() {
         return sexs;
      }

      public void setSexs(Object sexs) {
         this.sexs = sexs;
      }

      public int getGold() {
         return gold;
      }

      public void setGold(int gold) {
         this.gold = gold;
      }

      public String getOpenId() {
         return openId;
      }

      public void setOpenId(String openId) {
         this.openId = openId;
      }

      public int getLevel() {
         return level;
      }

      public void setLevel(int level) {
         this.level = level;
      }

      public double getUserNum() {
         return userNum;
      }

      public void setUserNum(double userNum) {
         this.userNum = userNum;
      }

      public int getGzNum() {
         return gzNum;
      }

      public void setGzNum(int gzNum) {
         this.gzNum = gzNum;
      }

      public int getFsNum() {
         return fsNum;
      }

      public void setFsNum(int fsNum) {
         this.fsNum = fsNum;
      }

      public Object getDele() {
         return dele;
      }

      public void setDele(Object dele) {
         this.dele = dele;
      }

      public int getLfNum() {
         return lfNum;
      }

      public void setLfNum(int lfNum) {
         this.lfNum = lfNum;
      }

      public int getVersionCode() {
         return versionCode;
      }

      public void setVersionCode(int versionCode) {
         this.versionCode = versionCode;
      }

      public String getVersionName() {
         return versionName;
      }

      public void setVersionName(String versionName) {
         this.versionName = versionName;
      }

      public int getIsDeleted() {
         return isDeleted;
      }

      public void setIsDeleted(int isDeleted) {
         this.isDeleted = isDeleted;
      }

      public Object getStatus() {
         return status;
      }

      public void setStatus(Object status) {
         this.status = status;
      }

      public Object getUserType() {
         return userType;
      }

      public void setUserType(Object userType) {
         this.userType = userType;
      }

      public String getIsVip() {
         return isVip;
      }

      public void setIsVip(String isVip) {
         this.isVip = isVip;
      }

      public Object getVipEndTime() {
         return vipEndTime;
      }

      public void setVipEndTime(Object vipEndTime) {
         this.vipEndTime = vipEndTime;
      }

      public String getAddress() {
         return address;
      }

      public void setAddress(String address) {
         this.address = address;
      }

      public Object getUserName() {
         return userName;
      }

      public void setUserName(Object userName) {
         this.userName = userName;
      }

      public Object getPassWord() {
         return passWord;
      }

      public void setPassWord(Object passWord) {
         this.passWord = passWord;
      }

      public int getAge() {
         return age;
      }

      public void setAge(int age) {
         this.age = age;
      }

      public String getSpareStatus() {
         return spareStatus;
      }

      public void setSpareStatus(String spareStatus) {
         this.spareStatus = spareStatus;
      }

      @Override
      public int describeContents() {
         return 0;
      }

      @Override
      public void writeToParcel(Parcel dest, int flags) {
         dest.writeString(createTime);
         dest.writeString(updateTime);
         dest.writeInt(id);
         dest.writeString(name);
         dest.writeString(remarkName);
         dest.writeString(headPhoto);
         dest.writeString(number);
         dest.writeInt(sex);
         dest.writeInt(gold);
         dest.writeString(openId);
         dest.writeInt(level);
         dest.writeDouble(userNum);
         dest.writeInt(gzNum);
         dest.writeInt(fsNum);
         dest.writeInt(lfNum);
         dest.writeInt(versionCode);
         dest.writeString(versionName);
         dest.writeInt(isDeleted);
         dest.writeString(isVip);
         dest.writeString(address);
         dest.writeInt(age);
         dest.writeString(spareStatus);
         dest.writeString(userId);
         dest.writeString(noteId);
         dest.writeString(noteContent);
      }

      public static class Params {
      }
   }
}
